#pragma once 

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define ROW 20
#define COL 20

#define PLAYER1 1
#define PLAYER2 2
#define NEXT 0
#define PLAYER1_WIN 1
#define PLAYER2_WIN 2
#define DRAW 3



enum Dir 
{
  LEFT,       //1
  RIGHT,      //2
  UP,         //3
  DOWN,       //4
  LEFT_UP,    //5
  LEFT_DOWN,  //6
  RIGHT_UP,   //7
  RIGHT_DOWN  //8
};

void Menu();

void Game();

void ShowBoard(int board[][COL],int row,int col);

void PlayerMove(int board[][COL],int row,int col,int who);
int IsOver(int board[][COL],int row,int col);
int chressCount(int board[][COL],int row,int col,enum Dir d);
